package office.action.person.form;

import office.bo.system.Department;
import current.security.user.domain.User;

public class TripForm {
	private String id;
	private String beginDate;		//出差开始时间
	private String endDate;			//出差结束时间
	private Double sumTime;		//总计出差时间
	private String reson;			//出差原因
	private Double tripMoney;		//出差金额
	private String giftName;		//礼品名称
	private String entryUserId;		//提交人id(请假人id)
	private String entryUserName;	//提交人名字(请假人名称)
	private String entryRole;		//提交人角色
	private String checkRole;		//审批人角色
	private String entryDate;
	private String state;
	private String stateName;
	private String deptId;
	private String companyId;
	private String stopDate;
	private String stopReson;
	private String roleDFlag;
	//出差人
	private User user;
	private Department department;
	
	public TripForm(){
		
	}
	public TripForm(String id,String beginDate,String endDate,Double sumTime,
			String reson,Double tripMoney,String giftName,String entryUserId,
			String entryUserName,String entryRole,String checkRole,String entryDate,String state,String stopDate,String stopReson){
		this.id = id;
		this.beginDate = beginDate;
		this.endDate = endDate;
		this.sumTime = sumTime;
		this.reson = reson;
		this.tripMoney = tripMoney;
		this.giftName = giftName;
		this.entryUserId = entryUserId;
		this.entryUserName =  entryUserName;
		this.entryRole = entryRole;
		this.checkRole = checkRole;
		this.entryDate = entryDate;
		this.state = state;
		this.stopDate = stopDate;
		this.stopReson = stopReson;
		if(null!=state && !("").equals(state)){
			if(state.equals("-1")){
				this.stateName = "审批驳回";
			}else if(state.equals("0")){
				this.stateName = "未提交审批";
			}else if(state.equals("1")){
				this.stateName = "审批过程";
			}else if(state.equals("100")){
				this.stateName="审批完成";
			}else if(state.equals("110")){
				this.stateName="已付款";
			}
			if(this.stopDate != null && !this.stopDate.equals("")){
				this.stateName = "已提前结束出差";
			}
		}
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getBeginDate() {
		return beginDate;
	}
	public void setBeginDate(String beginDate) {
		this.beginDate = beginDate;
	}
	public String getEndDate() {
		return endDate;
	}
	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}
	public Double getSumTime() {
		return sumTime;
	}
	public void setSumTime(Double sumTime) {
		this.sumTime = sumTime;
	}
	public String getReson() {
		return reson;
	}
	public void setReson(String reson) {
		this.reson = reson;
	}
	public Double getTripMoney() {
		return tripMoney;
	}
	public void setTripMoney(Double tripMoney) {
		this.tripMoney = tripMoney;
	}
	public String getGiftName() {
		return giftName;
	}
	public void setGiftName(String giftName) {
		this.giftName = giftName;
	}
	public String getEntryUserId() {
		return entryUserId;
	}
	public void setEntryUserId(String entryUserId) {
		this.entryUserId = entryUserId;
	}
	public String getEntryUserName() {
		return entryUserName;
	}
	public void setEntryUserName(String entryUserName) {
		this.entryUserName = entryUserName;
	}
	public String getEntryRole() {
		return entryRole;
	}
	public void setEntryRole(String entryRole) {
		this.entryRole = entryRole;
	}
	public String getCheckRole() {
		return checkRole;
	}
	public void setCheckRole(String checkRole) {
		this.checkRole = checkRole;
	}
	public String getEntryDate() {
		return entryDate;
	}
	public void setEntryDate(String entryDate) {
		this.entryDate = entryDate;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getStateName() {
		return stateName;
	}
	public void setStateName(String stateName) {
		this.stateName = stateName;
	}
	public String getDeptId() {
		return deptId;
	}
	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}
	public String getCompanyId() {
		return companyId;
	}
	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}
	public String getRoleDFlag() {
		return roleDFlag;
	}
	public void setRoleDFlag(String roleDFlag) {
		this.roleDFlag = roleDFlag;
	}
	public String getStopDate() {
		return stopDate;
	}
	public void setStopDate(String stopDate) {
		this.stopDate = stopDate;
	}
	public String getStopReson() {
		return stopReson;
	}
	public void setStopReson(String stopReson) {
		this.stopReson = stopReson;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Department getDepartment() {
		return department;
	}
	public void setDepartment(Department department) {
		this.department = department;
	}
	
	
}
